package com.skyline.user.model;

import java.io.Serializable;
import java.util.Date;

import com.skyline.base.type.Activity;
import com.skyline.common.cache.Cachable;
import com.skyline.common.util.CommonUtils;
import com.skyline.user.type.Sex;

//TODO:加注释
@SuppressWarnings("serial")
public class User implements Serializable, Cachable {
	private Long id;
	private String email;
	private String password;
	private String portrait;
	private Date createTime;
	private Date updateTime;
	private String lastLoginIp;
	private Date lastLoginTime;
	private String nickname;
	private String name;
	private Date birthday;
	private String province;
	private String city;
	private String country;
	private String siteId;
	private String job;
	private Sex sex;
	private String graduateSchool;
	private String mobilephone;
	private String msn;
	private String qq;
	private Integer authority;
	private String securityQuestion;
	private String securityAnswer;
	private String securityEmail;
	private Activity activity;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPortrait() {
		return portrait;
	}
	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}
	public Date getCreateTime() {
		return CommonUtils.cloneDate(createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = CommonUtils.cloneDate(createTime);
	}
	public Date getUpdateTime() {
		return CommonUtils.cloneDate(updateTime);
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = CommonUtils.cloneDate(updateTime);
	}
	public String getLastLoginIp() {
		return lastLoginIp;
	}
	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}
	public Date getLastLoginTime() {
		return CommonUtils.cloneDate(lastLoginTime);
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = CommonUtils.cloneDate(lastLoginTime);
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getBirthday() {
		return CommonUtils.cloneDate(birthday);
	}
	public void setBirthday(Date birthday) {
		this.birthday = CommonUtils.cloneDate(birthday);
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getSiteId() {
		return siteId;
	}
	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}

	public Sex getSex() {
		return sex;
	}
	public void setSex(Sex sex) {
		this.sex = sex;
	}
	public String getGraduateSchool() {
		return graduateSchool;
	}
	public void setGraduateSchool(String graduateSchool) {
		this.graduateSchool = graduateSchool;
	}
	public String getMobilephone() {
		return mobilephone;
	}
	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public Integer getAuthority() {
		return authority;
	}
	public void setAuthority(Integer authority) {
		this.authority = authority;
	}
	public String getSecurityQuestion() {
		return securityQuestion;
	}
	public void setSecurityQuestion(String securityQuestion) {
		this.securityQuestion = securityQuestion;
	}
	public String getSecurityAnswer() {
		return securityAnswer;
	}
	public void setSecurityAnswer(String securityAnswer) {
		this.securityAnswer = securityAnswer;
	}
	public String getSecurityEmail() {
		return securityEmail;
	}
	public void setSecurityEmail(String securityEmail) {
		this.securityEmail = securityEmail;
	}
	public Activity getActivity() {
		return activity;
	}
	public void setActivity(Activity activity) {
		this.activity = activity;
	}
	public String getFkId() {
		return String.valueOf(id);
	}
	
}
